home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 December / MACPOWER-1997-12.ISO.7z / MACPOWER-1997-12.ISO / AMUG / PROGRAMMING / Raven 1.2 Examples.sit / Raven 1.2 Examples / Quill / Source / HelpEditor.h < prev    next >
Text File  |  1996-11-29  |  2KB  |  92 lines

  1. /*
  2.  *  File:       HelpEditor.h
  3.  *  Summary:       A view that knows how to edit a pane's help message.
  4.  *  Written by: Jesse Jones
  5.  *
  6.  *  Copyright ゥ 1996 Jesse Jones. 
  7.  *    For conditions of distribution and use, see copyright notice in ZTypes.h  
  8.  *
  9.  *  Change History (most recent first):    
  10.  *
  11.  *         <->    11/24/96    JDJ        Created
  12.  */
  13.  
  14. #pragma once
  15.  
  16. #include <ZControl.h>
  17. #include <ZListener.h>
  18.  
  19. #include "BasePaneEditor.h"
  20.  
  21.  
  22. // ===================================================================================
  23. //    class CEditHelpCommand
  24. // ===================================================================================
  25. class CEditHelpCommand : public CBaseEditPaneCommand<TPane, SPaneInfo> {
  26.  
  27.     typedef CBaseEditPaneCommand<TPane, SPaneInfo> Inherited;
  28.  
  29. //-----------------------------------
  30. //    Initialization/Destruction
  31. //
  32. public:
  33.     virtual             ~CEditHelpCommand();
  34.     
  35.                         CEditHelpCommand(TPane* pane, const SPaneInfo& oldInfo, const SPaneInfo& newInfo);
  36.     
  37. //-----------------------------------
  38. //    Inherited API
  39. //
  40. public:
  41.     virtual    void         UpdatePane(const SPaneInfo& newInfo);
  42. };
  43.  
  44.  
  45. // ===================================================================================
  46. //    CHelpEditor
  47. // ===================================================================================
  48. class CHelpEditor : public CBasePaneEditor<TPane, SPaneInfo, CEditHelpCommand>, public MListener<SControlMessage> {
  49.  
  50.     typedef CBasePaneEditor<TPane, SPaneInfo, CEditHelpCommand> Inherited;
  51.     
  52. //-----------------------------------
  53. //    Initialization/Destruction
  54. //
  55. public:
  56.     virtual                ~CHelpEditor();
  57.                         
  58.                         CHelpEditor(TView* superView);
  59.  
  60. //-----------------------------------
  61. //    Inherited API
  62. //
  63. protected:
  64.     virtual SPaneInfo     GetEditorInfo() const;
  65.             
  66.     virtual void         SetEditorInfo(const SPaneInfo& info);
  67.                         
  68.     virtual void         OnReanimated();
  69.  
  70.     virtual void         OnBroadcast(const SControlMessage& mesg);
  71.  
  72. //-----------------------------------
  73. //    TReanimator Support
  74. //
  75. public:
  76.     static     MReanimatable* Create(MReanimatable* parent);
  77.  
  78. //-----------------------------------
  79. //    Internal API
  80. //
  81. protected:
  82.     virtual void         TogglePanes();
  83.  
  84. //-----------------------------------
  85. //    Member data
  86. //
  87. public:
  88.     ResType    mType;
  89. };
  90.  
  91.  
  92.